using System;
using System.ComponentModel.DataAnnotations;

namespace Boa.AIT.AccesoDatos.Entidades
{
 public partial class AIT_Region
 {
     public AIT_Region()
     {
     }
     #region foreign Keys

     public int RegionPadreId_FK {get;set;}
     private AIT_Region RegionPadreId_obj ;
     public virtual AIT_Region RegionPadre
      {
          get { return RegionPadreId_obj; }
          set {
                RegionPadreId_obj = value;
                if (RegionPadreId_obj != null) RegionPadreId_FK = RegionPadreId_obj.Id; 
          }
      }
     #endregion
     public virtual int   Id { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Guid")]
     public virtual string   Guid { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Nombre")]
     public virtual string   Nombre { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Descripcion")]
     public virtual string   Descripcion { get; set;}

     //[StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     //[Display(Name = "Latitud")]
     //public virtual string   Latitud { get; set;}

     //[StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     //[Display(Name = "Longitud")]
     //public virtual string   Longitud { get; set;}
 }
}

